package com.xjmall.pojo;

import java.util.Date;

public class Comment {
    private Long id;

    private Integer productId;

    private Integer userId;

    private String userAvatar;

    private String username;

    private Integer commentType;

    private String commentText;

    private String productSpecName;

    private Date commentTime;

    private Integer isanonymous;

    public Comment(Long id, Integer productId, Integer userId, String userAvatar, String username, Integer commentType, String commentText, String productSpecName, Date commentTime, Integer isanonymous) {
        this.id = id;
        this.productId = productId;
        this.userId = userId;
        this.userAvatar = userAvatar;
        this.username = username;
        this.commentType = commentType;
        this.commentText = commentText;
        this.productSpecName = productSpecName;
        this.commentTime = commentTime;
        this.isanonymous = isanonymous;
    }

    public Comment() {
        super();
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserAvatar() {
        return userAvatar;
    }

    public void setUserAvatar(String userAvatar) {
        this.userAvatar = userAvatar == null ? null : userAvatar.trim();
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public Integer getCommentType() {
        return commentType;
    }

    public void setCommentType(Integer commentType) {
        this.commentType = commentType;
    }

    public String getCommentText() {
        return commentText;
    }

    public void setCommentText(String commentText) {
        this.commentText = commentText == null ? null : commentText.trim();
    }

    public String getProductSpecName() {
        return productSpecName;
    }

    public void setProductSpecName(String productSpecName) {
        this.productSpecName = productSpecName == null ? null : productSpecName.trim();
    }

    public Date getCommentTime() {
        return commentTime;
    }

    public void setCommentTime(Date commentTime) {
        this.commentTime = commentTime;
    }

    public Integer getIsanonymous() {
        return isanonymous;
    }

    public void setIsanonymous(Integer isanonymous) {
        this.isanonymous = isanonymous;
    }
}